var Client = require('ftp');
let ftps = [];

for (let i = 0; i < 10; i++) {
    let ftp_client = new Client();
    ftp_client.connect({
        "host": "116.10.184.230",
        "user": "tv_ailipai",
        "password": "m57aJk3BfYwfkfNy",
        "keepalive": 10000,
        "connTimeout ": 10000
    });
    const tempI = i;
    ftp_client.on('ready', function () {
        console.log("FTP "+tempI+" 已准备好!");
    });
}

console.log(ftps)
